package link.jack.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    //如果要跳转到index页面，不推荐在Controller中跳转，推荐使用自定义Config类扩展mvc
//    @RequestMapping({"/","/index.html"})
//    public String index(){
//        return "index";
//    }

    @RequestMapping("/login")
    public String login(){
        return "login";
    }

}
